import request from '@/utils/request'

// 查询物功能参数列表
export function listThingFunctionParam(query) {
  return request({
    url: '/equipment/thingFunctionParam/list',
    method: 'get',
    params: query
  })
}

// 查询物功能参数详细
export function getThingFunctionParam(id) {
  return request({
    url: '/equipment/thingFunctionParam/' + id,
    method: 'get'
  })
}

// 新增物功能参数
export function addThingFunctionParam(data) {
  return request({
    url: '/equipment/thingFunctionParam',
    method: 'post',
    data: data
  })
}

// 修改物功能参数
export function updateThingFunctionParam(data) {
  return request({
    url: '/equipment/thingFunctionParam',
    method: 'put',
    data: data
  })
}

// 删除物功能参数
export function delThingFunctionParam(id) {
  return request({
    url: '/equipment/thingFunctionParam/' + id,
    method: 'delete'
  })
}
